<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * HuobiAlertTimestamp
 *
 * @ORM\Table(name="huobi_alert_timestamp")
 * @ORM\Entity
 */
class HuobiAlertTimestamp
{
    /**
     * @var integer
     *
     * @ORM\Column(name="time_stamp", type="integer", nullable=false)
     */
    private $timeStamp = '0';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="coin_time", type="datetime", nullable=false)
     */
    private $coinTime = 'CURRENT_TIMESTAMP';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="datetime", nullable=false)
     */
    private $ctime = 'CURRENT_TIMESTAMP';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;


    public function __construct()
    {
        $this->timeStamp = time();
        $this->coinTime = new \DateTime();
        $this->ctime = new \DateTime();
    }

    /**
     * Set timeStamp
     *
     * @param integer $timeStamp
     *
     * @return HuobiAlertTimestamp
     */
    public function setTimeStamp($timeStamp)
    {
        $this->timeStamp = $timeStamp;

        return $this;
    }

    /**
     * Get timeStamp
     *
     * @return integer
     */
    public function getTimeStamp()
    {
        return $this->timeStamp;
    }

    /**
     * Set coinTime
     *
     * @param \DateTime $coinTime
     *
     * @return HuobiAlertTimestamp
     */
    public function setCoinTime($coinTime)
    {
        $this->coinTime = $coinTime;

        return $this;
    }

    /**
     * Get coinTime
     *
     * @return \DateTime
     */
    public function getCoinTime()
    {
        return $this->coinTime;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     *
     * @return HuobiAlertTimestamp
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
